-
Notifications
You must be signed in to change notification settings - Fork 2.1k
feat: allow using SafeNoSync for MDBX #18945
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
mattsse
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
supportive but I'd like to change the setup for this a bit so that we don't always need to provide the syncmode
unclear to me why some changes are now using SafeNoSync
this change should not alter existing logic
|
Hey @mattsse, thanks for the feedback! I’m really enthusiastic about making my first contribution to the reth repository. Additionally, I removed all the modifications I had made to the test functions. I believe this approach aligns much better with the current codebase. I’m still getting familiar with how things work in Let me know if there is something else I need to change. |
mattsse
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
Changed the parser to be easier by creating a Let me know if there are any other modifications required. |
shekhirin
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, this is useful. LGTM!
| /// Controls how aggressively the database synchronizes data to disk. | ||
| #[arg( | ||
| long = "db.sync-mode", | ||
| value_parser = value_parser!(SyncMode), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unsure if we even need this now that syncmode is fromstr
Co-authored-by: Alexey Shekhirin <5773434+shekhirin@users.noreply.github.com>
This PR introduces a flag to enable to users to initialize the database with
SafeNoSyncmode.Fixes: #18565
Introduces:
sync_modeto theDatabaseArgumentsandDatabaseArgs.TypedParserto make sure onlyDurableandSafeNoSyncoptions are used.DatabaseArguments::newfunction.DatabaseArguments::newis used to use theSafeNoSyncmode.Durable.DurableCan you point me if the documentation update is necessary?